package test;

import entity.EntityContext;
import entity.QuestionInfo;
import service.ContentContext;
import ui.*;

import java.io.IOException;

public class Main {
    public static void main(String[] args) throws IOException, InterruptedException {
        ClientContext clien = new ClientContext();
        Login login = new Login();
        Menu menu = new Menu();
        EntityContext entity=new EntityContext();
        ContentContext content=new ContentContext();
        Exam exam=new Exam();
        QuestionInfo info=new QuestionInfo();
        Welcome welcome=new Welcome();

        clien.setLogin(login);
        clien.setMenu(menu);
        clien.setContent(content);
        clien.setExam(exam);
        clien.setWelcome(welcome);

        content.setEntity(entity);
        content.setClient(clien);
        exam.setClient(clien);


        login.setClient(clien);

        menu.setClientContext(clien);

        clien.showMe();
    }
}
